import { barLineParamsType, TypeItem, LegendStyle, GridConfig, boxPlotParamsType } from "@/type/chartsPbulic";
// 饼图柱状图公共传参方法
export const barLineParamsData = (
  legendData: any[],
  xAxisData: any[],
  yAxisData: any,
  typeData: TypeItem[],
  seriesData: any[],
  colors: any[],
  legendStyle: LegendStyle,
  gridConfig: GridConfig
): barLineParamsType => {
  return {
    legendData,
    xAxisData,
    yAxisData,
    typeData,
    seriesData,
    colors,
    legendStyle,
    gridConfig,
  };
};
// 盒须图公共传参方法
export const boxPlotParamsData = (
  legendData: any[],
  xAxisData: any[],
  yAxisData: any,
  seriesData: any[],
  colors: any[],
  legendStyle: LegendStyle,
  gridConfig: GridConfig
): boxPlotParamsType => {
  return {
    legendData,
    xAxisData,
    yAxisData,
    seriesData,
    colors,
    legendStyle,
    gridConfig,
  };
};
